<html lang="zh-CN">
<head>
    <title>系统登录</title>
	<meta charset="utf-8">
    <style>
        div{
            width:400px;
            height:100px;
            position: absolute;
            top:50%;
            left:50%;
            margin-top: -50px ;
            margin-left:-150px;
        }
		input {
			 cursor: pointer;
			 width: 200px; 
			
		}
    </style>
	<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"/>	</script>
	<script>
	$(document).ready(function(){
		$("#login_submit").click(function(){
			var email = $("#email_id").val();
			var password = $("#password_id").val();
			$.get("http://www.test.com:8000/api/user/login/"+email+"/"+password,function(data,status){
				console.log("数据: " + data + "\n状态: " + status);
				location.href="/static/welcome.html";
			});
		});
	});	
	</script>
</head>
<body>
    <div>
     
            <table>
                <tr>
                    <td>邮箱：</td>
                    <td><input type="text" id="email_id" name="email"></td>
                </tr>
                <tr>
                    <td>密码：</td>
                    <td><input type="password" id="password_id" name="password"> </td>
                </tr>
				
				<tr>
				 <td></td>
                    <td><input type="button" id="login_submit" value="登录"> </td>
                </tr>
				<tr>
				<td></td>
                    <td><a href="/static/register.html">注册新账号</a></td>
                </tr>
            </table>

      
    </div>
</body>
</html>
